<li <% if (typeof(uniqueId) !== 'undefined') { %>  uniqueId = <%=uniqueId%> <%}%>>
     <div class="time"><span time=<%=time%> ><%=fomatTime%></span></div>
     <%if (sender == selfname) {%>
        <label class='label_right'>
              <% if (icon) { %>
                  <img class="imglazyload"  src = "<%=defaultImg%>blank.png" url="<%=icon%>" />
              <% } else { %>
                  <% if (gender == 1) {%> 
                       <img class="imglazyload"  src = "<%=defaultImg%>blank.png" url="<%=defaultImg%>icon_male.png" />
                  <% } else {%>          
                       <img class="imglazyload"  src = "<%=defaultImg%>blank.png" url="<%=defaultImg%>icon_remale.png" />
                  <% } %>
              <% } %>
        </label>
        <% if (sysType == 'email') {%>
            <div class='email_box'>  
                <div class="bubble_white bubble_white_right">
                    <div class="content">
                            <div class="messagetit"><span> You sent <%=toName%> an email </span></div>
                            <p><%=message%></P>
                            <div class="readmore" data='<%=data%>' id='email_<%=uid%>'><span>Read Details</span></div>
                    </div>
                    <div class="arrow arrow_right"></div>
                    <div class="arrow_border arrow_border_right"></div>
                </div>
             </div>
        <% } else { %>
            <div class='message_box'>
                 <div class="bubble_orange bubble_orange_right">
                       <div class="arrow_right"></div>
                       <div class="content">
                            <p><%=message%></p>
                       </div>
                 </div>
            </div>
         <% } %>
     <% } else {%>
        <label class='profile'>
              <% if (icon) { %>
                  <img class="imglazyload"  src = "<%=defaultImg%>blank.png" url="<%=icon%>" />
              <% } else { %>
                  <% if (gender == 1) {%> 
                       <img class="imglazyload"  src = "<%=defaultImg%>blank.png" url="<%=defaultImg%>icon_male.png" />
                  <% } else {%>          
                       <img class="imglazyload"  src = "<%=defaultImg%>blank.png" url="<%=defaultImg%>icon_remale.png" />
                  <% } %>
              <% } %>
        </label>

         <% if (sysType == 'email') {%>
            <div class='email_box'>  
                <div class="bubble_white bubble_white_left"><div class="content">
                <div class="messagetit"><span> <%=toName%> sent you an email</span></div>
                <p><%=message%></P>
                <div class="readmore" data='<%=data%>' id='email_<%=uid%>'><span>Read Details</span></div>
                </div><div class="arrow arrow_left"></div><div class="arrow_border arrow_border_left"></div></div>
             </div>  
         <% } else { %>
            <div class='message_box'>
                 <div class="bubble_orange bubble_orange_left">
                       <div class="arrow_left"></div>
                       <div class="content">
                            <p><%=message%></p>
                       </div>
                 </div>
            </div>
          <% } %>
     <% } %>
</li>

